#ifndef PRACTICE_10_8_H_
#define PRACTICE_10_8_H_
typedef int Item;

class MyList
{
private:
	enum { MAX = 2 };
	Item items[MAX];
	int top,bottom,count;
public:
	MyList();
	bool isempty() const;
	bool isfull() const;

	bool push(const Item & item);
	bool pop(Item & item);

	void visit(void(*pf)(Item &));
};
#endif // !PRACTICE_10_8_H_
